package com.xxxx.yygh.cmn.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Lee.s
 * @description
 * @date 2021/03/12 7:45
 */
@Configuration
@MapperScan("com.xxxx.yygh.cmn.mapper")
public class CmnConfig {

    @Bean
    /**
     * Mybatis分页插件
     * @return
     */
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
